package com.hospital.doctor.doctory.dao;

import com.hospital.doctor.doctorg.entity.QueueEntity;
import com.hospital.doctor.doctory.entity.DoctorDiagnose;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author ：ysb
 * @ClassName ：QueueMapper
 * @Package ：com.hospital.doctor.doctory.dao
 * @Description:
 * @Date:2021/11/2 10:17
 */
@Repository
public interface QueueMapper {

    /**
     * 查询患者队列
     *
     * @param doctorId 医生编号
     * @param state     状态
     * riqi  只是一个变量
     * @return 分页集合
     */
    List<QueueEntity> getList(
            @Param(value = "doctorId") Integer doctorId,
            @Param(value = "state") Integer state,
            @Param(value = "riqi") String riqi
    );

    //修改状态
    Integer stateUpdate(Integer id);

    /**
     * 根据诊疗卡号查询用户过往病历
     * @param userid
     * @return
     */
    List<DoctorDiagnose> selectDiagnose(Integer userid);

    


}
